package com.learn.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.learn.dto.req.AddProductReq;
import com.learn.dto.req.DeleteProductReq;
import com.learn.dto.req.QueryProductListReq;
import com.learn.dto.req.UpdateProductReq;
import com.learn.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductMapper extends BaseMapper<Product>
{
	//新增產品
	/**Integer addProduct (@Param ("req") AddProductReq req);

	//产品列表查询
	IPage<Product> productList (@Param ("page") IPage<Product> page, @Param ("req") QueryProductListReq req);

	//删除产品
	Integer deleteProduct (@Param ("req") DeleteProductReq req);

	//详情查询
	Product queryProductDetail (@Param ("id") Integer id);

	//更新产品
	Integer updateProduct (@Param ("req") UpdateProductReq req);**/
}
